package com.medusa.aps.business.modules.modeling.mp.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.medusa.aps.business.model.pagination.Page;
import com.medusa.aps.business.modules.modeling.model.input.EquipmentDTO;
import com.medusa.aps.business.modules.modeling.model.input.EquipmentParam;
import com.medusa.aps.business.modules.modeling.mp.entity.Equipment;

import java.util.List;

/**
 * 设备服务接口
 *
 * @author yuxh
 * @since 2023-08-14 17:37:44
 */
public interface EquipmentService extends IService<Equipment> {

    /**
     * 分页查询设备
     *
     * @param equipmentParam 设备查询参数
     * @return 所有数据
     */
    Page<Equipment> pageEquipment(EquipmentParam equipmentParam);

    /**
     * 批量新增设备
     *
     * @param equipmentCreates 实体对象
     */
    void saveBatchEquipment(List<EquipmentDTO> equipmentCreates);

    /**
     * 修改设备
     *
     * @param equipmentDTO 设备对象
     */
    void updateEquipment(EquipmentDTO equipmentDTO);

    /**
     * 删除数据
     *
     * @param idList 主键结合
     */
    void deleteBatch(List<Long> idList);
}

